﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.UDT.Manage" %>


<!doctype html>
<html>
<head runat="server">
    <title>标签管理</title>
    <meta charset="utf-8" />
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="clear: both;"><div style="float: left; width:60%;">
                    <BootStrap:Breadcrumb runat="server" ID="BC_Path"></BootStrap:Breadcrumb>

                </div>
                <div style="float: right;">
                    <asp:DropDownList ID="ddlSort" runat="server" CssClass="span2" EnableViewState="False">
                        <asp:ListItem Value="Name">标签名称</asp:ListItem>
                        <asp:ListItem Value="Remark">备注</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                        <asp:TextBox ID="txtKeyWord" CssClass="span3" runat="server"></asp:TextBox>&nbsp;
                        <WinnerCMS:ButtonX ID="btnSearch" runat="server" EnableViewState="False" 
                            OnClick="btnSearch_Click" Text="搜索" Cssclass="btn btn-default"></WinnerCMS:ButtonX>
                </div></div>
                
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" GridLines="None" CssClass="table table-bordered table-condensed table-hover"
                    DataKeyNames="ID" OnRowDataBound="GV_List_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <HeaderTemplate>
                                <input name="chkHeader" onclick="javascript: SelectAll(this);" type="checkbox" value="chkHeader" />
                            </HeaderTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText="标签名字">
                            <ItemTemplate>
                                <%# MyLink(Eval("Name"), Eval("ID")) %>
                            </ItemTemplate>
                            <HeaderStyle Width="120px" />
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText="调用标签">
                            <ItemTemplate>
                                &lt;TW:WinnerCMS ID=&quot;<%# Eval("Name") %>&quot;&gt;&lt;/TW:WinnerCMS&gt;
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText="启用">
                            <ItemTemplate>
                                <%#  Eval("IsStop").ToString() == "0" ? "<IMG alt='' src='../Images/success-true.gif'>" : "<IMG alt='' src='../Images/failed-false.gif'>" %>
                            </ItemTemplate>
                            <HeaderStyle Width="40px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>

                        <asp:BoundField DataField="CheckInTime" DataFormatString="{0:yy-MM-dd HH:mm:ss}" HeaderText="录入日期"
                            HtmlEncode="False">
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>

                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
                <div>
                    <asp:Button ID="btnDelete" runat="server" Text="删除选中" EnableViewState="False"
                        CssClass="btn btn-default" OnClick="btnDelSeletedID_Click" OnClientClick="return CheckSelected(this,'GV_List');"></asp:Button><asp:Button ID="btnStop" runat="server" CssClass="btn btn-default" OnClick="btnStop_Click" Text="停用"
                            OnClientClick="return CheckSelected(this,'GV_List');" /><asp:Button ID="btnUnStop" runat="server" CssClass="btn btn-default" OnClick="btnUnStop_Click"
                                Text="启用" OnClientClick="return CheckSelected(this,'GV_List');" />
                </div>

                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                    SubmitButtonclass="btn btn-default" SubmitButtonText="转向">
                </WinnerCMS:PageNavigation>

            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
